﻿<UserControl x:Class="Tanis.Settings.SettingsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">

    <UserControl.Resources>
        <DataTemplate x:Name="lpkSmallDefaultCitySelector">
            <TextBlock Text="{Binding Path=Name}"  />
        </DataTemplate>
        <DataTemplate x:Name="lpkFullDefaultCitySelector">
            <TextBlock Text="{Binding Path=Name}" Style="{StaticResource PhoneTextLargeStyle}" />
        </DataTemplate>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="{StaticResource TransparentBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <toolkit:ListPicker x:Name="lpkLanguage"  SelectionChanged="lpkLanguage_SelectionChanged" Header="{Binding Path=LocalizedResources.SettingsLabelLanguage, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Top" Grid.Row="1" />
        <toolkit:ListPicker FullModeItemTemplate="{StaticResource lpkFullDefaultCitySelector}" ItemTemplate="{StaticResource lpkSmallDefaultCitySelector}" x:Name="lpkDefaultCity" SelectionChanged="lpkDefaultCity_SelectionChanged" Header="{Binding Path=LocalizedResources.SettingsLabelDefaultCity, Source={StaticResource LocalizedStrings}}" VerticalContentAlignment="Center" VerticalAlignment="Top" Grid.Row="0" />
    </Grid>
</UserControl>